<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript">
			/*var str ="wordwordwordword";*/
			/*var str="2017.04.25";  不能转换*/
			var str = "2017/04/25";
			 
			var strFormat = str.replace(/\//g,".");//用正则表达式达到replaceALL的效果
			console.log(strFormat);
			
		</script>
		
	</body>
</html>
